<template>
    <div class="color-b" 
        :style="{background:bColor ,
                'font-size': fSize+'rem',
                color:fontColor}">
        <slot name='text'></slot>
        
    </div>
</template>

<script>
export default {
    name: 'colorBlock.vue',
    props: {
        bColor:{
            type: String,
            default: '#F5F5F5',
        },
        fontColor:{
            type: String,
            default: 'white',
        },
        fSize:{
            type: Number,
            default: 0.45,
        },
    }
}
</script>

<style lang="scss" scoped>
.color-b {
    display: inline-block;
    text-align: center;
    line-height: 42px;
    border-radius: 5px;
}
</style>